﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="DashboardGadget" table="cmsDashboardGadget">
    <cache usage="read-write" />
    <id name="ID" unsaved-value="0" column="ID" type="System.Int32">
      <generator class="identity" />
    </id>
    <property name="Filename" column="Filename" not-null="true" type="System.String" />
    <property name="Activated" column="Activated" not-null="true" type="System.Boolean" />
    <property name="CustomGadget" column="CustomGadget" not-null="true" type="System.Boolean" />
    <many-to-one name="Code" column="CodeID" not-null="false" cascade="all" />
    <many-to-one name="Xml" column="XmlID" not-null="false" cascade="all" />
  </class>
</hibernate-mapping>